package com.xmut.mall.coupon.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 添加平台券
 */
@Data
public class AddPlatformCouponVo {
    private Long id;

    private String promotionName;

    private String couponName;

    private String couponType;

    private String description;

    private String getType;

    private BigDecimal consumeThreshold;

    /**
     * 领取限制
     */
    private Integer couponLimitNum;

    private BigDecimal price;

    /**
     * 发行数量
     */
    private Integer publishNum;

    private String rangeDayType;

    private String scopeType;

    private String promotionStatus;

    /**
     * 折扣
     */
    private BigDecimal couponDiscount;

    /**
     * 店铺承担比例
     */
    private BigDecimal storeCommission;

    private List<String> rangeTime;

    private List<PromotionGoodsVo> promotionGoodsList;

    /**
     * 使用范围的ID 商品的ID 或者 分类的ID
     */
    private String scopeId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private Long storeId = 0l;
    private String storeName = "platform";
}
